package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DishMapper {

    Page<DishVO> pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void save(Dish dish);

    Dish getById(Long id);

    void update(Dish dish);

    void startOrStop(Integer status, Long id);

    void delete(Integer id);

    List<Dish> list(Dish dish);;

    List<DishFlavor> getfalById(Long id);

    Integer countByMap(Map map);
}